extends Area2D

signal eat

func _ready():
	connect("eat",get_tree().current_scene.get_node("number"),"add")
	
func _on_bug_body_entered(body):
	if body.name == "player":
		emit_signal("eat")
		queue_free()
